package com.company.作业;

import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
            System.out.println("请输入用户名:"+"\n"+"请输入密码:"+"\n"+"请再次输入密码");
            Scanner in=new Scanner(System.in);
            String name=in.next();
            String mima1=in.next();
            String mima2=in.next();
            if(mima1.equals(mima2)){
                System.out.println("恭喜您，注册成功");
            }
            else{
                System.out.println("对不起，您两次输入的密码不一致，请重新输入");
            }




        }
    }













